/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upn.sigemfi.ope.be;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author infzt
 */
@Entity
@Table(name = "OPE_CARGOS_NOTA", catalog = "SIGEMFI", schema = "dbo")
@NamedQueries({@NamedQuery(name = "CargosNota.findAll", query = "SELECT c FROM CargosNota c"), @NamedQuery(name = "CargosNota.findByIdCargosNota", query = "SELECT c FROM CargosNota c WHERE c.idCargosNota = :idCargosNota"), @NamedQuery(name = "CargosNota.findByDetalle", query = "SELECT c FROM CargosNota c WHERE c.detalle = :detalle"), @NamedQuery(name = "CargosNota.findByMotivo", query = "SELECT c FROM CargosNota c WHERE c.motivo = :motivo"), @NamedQuery(name = "CargosNota.findByCodigoAbono", query = "SELECT c FROM CargosNota c WHERE c.codigoAbono = :codigoAbono"), @NamedQuery(name = "CargosNota.findByCodigoNota", query = "SELECT c FROM CargosNota c WHERE c.codigoNota = :codigoNota")})
public class CargosNota implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_CARGOS_NOTA", nullable = false)
    private Long idCargosNota;
    @Column(name = "DETALLE", length = 50)
    private String detalle;
    @Column(name = "MOTIVO", length = 50)
    private String motivo;
    @Column(name = "CODIGO_ABONO", length = 50)
    private String codigoAbono;
    @Column(name = "CODIGO_NOTA", length = 50)
    private String codigoNota;

    public CargosNota() {
    }

    public CargosNota(Long idCargosNota) {
        this.idCargosNota = idCargosNota;
    }

    public Long getIdCargosNota() {
        return idCargosNota;
    }

    public void setIdCargosNota(Long idCargosNota) {
        this.idCargosNota = idCargosNota;
    }

    public String getDetalle() {
        return detalle;
    }

    public void setDetalle(String detalle) {
        this.detalle = detalle;
    }

    public String getMotivo() {
        return motivo;
    }

    public void setMotivo(String motivo) {
        this.motivo = motivo;
    }

    public String getCodigoAbono() {
        return codigoAbono;
    }

    public void setCodigoAbono(String codigoAbono) {
        this.codigoAbono = codigoAbono;
    }

    public String getCodigoNota() {
        return codigoNota;
    }

    public void setCodigoNota(String codigoNota) {
        this.codigoNota = codigoNota;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idCargosNota != null ? idCargosNota.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CargosNota)) {
            return false;
        }
        CargosNota other = (CargosNota) object;
        if ((this.idCargosNota == null && other.idCargosNota != null) || (this.idCargosNota != null && !this.idCargosNota.equals(other.idCargosNota))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "edu.upn.sigemfi.ope.be.CargosNota[idCargosNota=" + idCargosNota + "]";
    }

}
